
#include <iostream>
#include <iomanip>

#include "Reference.h"
#include "Book.h"

using std::cout;
using std::endl;

int main (int argc, char * const argv[]) 
{  
 
 /* Creation of three objects instance of the class Book named B1, B2 and B3 */
 Book* B1 = new Book ();
 Book* B2 = new Book ();
 Book* B3 = new Book ();
 
 /* Test of the funcion "print", testing thus the following functions : { "getId", "getAuthor", "getTitle" "getDepartment", "getInstitution" "getNumberOfPages", and "getYearOfPublicaton" }*/
 cout << "* Let's test the Book's data members by giving them their default values, then we find : " <<endl;
 B1->print();
 B2->print();
 B3->print();
 
 B1->setId(5427);
 B1->setYearOfPublication(1975);
 B1->setAuthor(" Hamza SHAWY ");
 B1->setTitle(" THE MYSTERIOUS KNOWLEDGE  "); 
 B1->setNumberOfPages(134);
 B1->setPublisher(" Mr LONGUEL "); 

 
 B2->setId(01654);
 B2->setYearOfPublication(1989);
 B2->setAuthor(" Jonathan SCHRODER ");
 B2->setTitle(" HIGH HOPES "); 
 B1->setNumberOfPages(600);
 B1->setPublisher(" Mr JEDOS "); 


 
 B3->setId(3069);
 B3->setYearOfPublication(2002);
 B3->setAuthor(" Issa FORTIN ");
 B3->setTitle(" THEIR PARADISE  ");
 B1->setNumberOfPages(194);
 B1->setPublisher(" Mr GLUMANN "); 
 
 cout << "* Then, let's give values to the attributs of the class book ! We find thus : " <<endl;
 B1->print();
 B2->print();
 B3->print();
 
 #ifdef WIN32
 system("PAUSE");
 #endif
 
 return 0;
 }
